<% var pageLevelJS = { %>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"sys"
		 ,modelName:"令牌"
		 ,modelFlag:"token"
		 ,key:"${sessionId}" 
		}
</script> 
<script type="text/javascript" src="${ctx}/static/js/sys/token/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
	  <input type="hidden" name="id" value="${data.id}">
      <div class="form-group  col-md-5">
	       <label for="name" class="required-before col-sm-4 control-label no-padding-right">令牌:</label>
	       <div class="col-sm-8 inline-height ">
				  <input type="text" oldval="${data.nameStr}" disabled="disabled" value="${data.nameStr}" class="validate[required,maxSize[50]] col-xs-10" name="nameStr" placeholder="名称" />
	 	    </div> 
	   </div>
	    <%if(isEmpty(data.useDt)){ %>
		 <div class="form-group col-md-5">
		     <label for="startDate" class="col-sm-4 control-label no-padding-right">有效期开始日期:</label>
  			 <div class="col-sm-8 inline-height" style="" >
			     <input  style="height:32px;" oldval="${data.startDt!,dateFormat='yyyy-MM-dd'}" value="${data.startDt!,dateFormat='yyyy-MM-dd'}" class="Wdate col-xs-10" type="text" name="startDt" id="startDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endDate\')}'})"    placeholder="请输入开始日期"/>
			  </div>
		  </div>
		 <div class="form-group col-md-5">
		     <label for="startDate" class="col-sm-4 control-label no-padding-right">有效期结束日期:</label>
  			 <div class="col-sm-8 inline-height" style="" >
			     <input  style="height:32px;" oldval="${data.endDt!,dateFormat='yyyy-MM-dd'}" value="${data.endDt!,dateFormat='yyyy-MM-dd'}" class="Wdate col-xs-10" type="text" name="endDt" id="endDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'startDate\')}'})"    placeholder="请输入结束日期"/>
			  </div>
		  </div>
	    <%}else{%>
	    <div class="form-group col-md-5">
		     <label for="startDate" class="col-sm-4 control-label no-padding-right">有效期开始日期:</label>
  			 <div class="col-sm-8 inline-height" style="" >
			     <input  style="height:32px;" disabled="disabled" oldval="${data.startDt!,dateFormat='yyyy-MM-dd'}" value="${data.startDt!,dateFormat='yyyy-MM-dd'}" class="disabled Wdate col-xs-10" type="text" name="startDt" id="startDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endDate\')}'})"    placeholder="请输入开始日期"/>
			  </div>
		  </div>
		 <div class="form-group col-md-5">
		     <label for="startDate" class="col-sm-4 control-label no-padding-right">有效期结束日期:</label>
  			 <div class="col-sm-8 inline-height" style="" >
			     <input  style="height:32px;" disabled="disabled" oldval="${data.endDt!,dateFormat='yyyy-MM-dd'}" value="${data.endDt!,dateFormat='yyyy-MM-dd'}" class="disabled Wdate col-xs-10" type="text" name="endDt" id="endDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'startDate\')}'})"    placeholder="请输入结束日期"/>
			  </div>
		  </div>
	    <%}%>
		 <div class="form-group col-md-5">
		     <label for="startDate" class="col-sm-4 control-label no-padding-right">使用日期:</label>
  			 <div class="col-sm-8 inline-height" style="" >
			     <input  style="height:32px;" disabled="disabled" oldval="${data.useDt!,dateFormat='yyyy-MM-dd HH:mm'}" value="${data.useDt!,dateFormat='yyyy-MM-dd HH:mm'}" class="Wdate col-xs-10" type="text" name="endDt" id="endDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'startDate\')}'})"    placeholder=""/>
			  </div>
		  </div>
	  <div class="form-group col-md-5">
	     <label for="remark" class="col-sm-4 control-label no-padding-right">备注:</label>
	     <div class="col-sm-8 inline-height">
		    <input type="text"   oldval="${data.remark}" value="${data.remark}" class="validate[maxSize[50]] col-xs-10" name="remark" placeholder="备注">
		  </div>
	  </div>	
<%} %>
